package com.qiteng.apiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author qiteng
 */
public class SignUtils {
    public static String generateSign(String body, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String sign = md5.digestHex(body + "." + secretKey);
        return sign;
    }
}
